package com.qf.pojo;

import lombok.Data;

import javax.persistence.*;

/**
 * @Author Zhy
 * Date on 2020/10/12  18:14
 * @description
 */
/*
### Patient【患者信息表】新增-修改-删除

患者编号(100001),logo,患者姓名,患者性别,患者年龄,出生日期,手机号码,电子邮箱,证件号码,地址,民族,婚姻状况,学历,职业,工作单位,备注,
患者卡号,
患者来源,创建时间,操作人员,
属性1,属性2
patientId,logo,name,sex,age,birth,phone,email,identityId,address,nation,ismarry,education,profession,workunit,note,
cardnum,
source,createTime,operators,
attribute1,attribute2
 */
@Entity
@Data
@Table(name = "patient")
public class Patient {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "patientid")
    private String patientId;
    private String logo;
    private String name;
    private String sex;
    private Integer age;
    private String birth;
    private String phone;
    private String email;
    @Column(name = "identityid")
    private String identityId;
    private String address;
    private String nation;
    private String ismarry;
    private String education;
    private String profession;
    private String workunit;
    private String note;
    private String cardnum;
    private String source;
    @Column(name = "createtime")
    private String createTime;
    private String operators;
    private String attribute1;
    private String attribute2;
}
